package com.cims.action.service;

import java.util.ArrayList;
import java.util.List;

import com.cims.action.BaseAction;
import com.cims.bo.service.ServiceBO;
import com.cims.bo.service.ServiceBOImpl;
import com.cims.common.vo.Service;

/**
 * <strong>ServiceAction</strong><br>
 * <br>
 * 
 * @author AnhDN
 * @version $Id$
 */
public class ServiceAction extends BaseAction{

	/** serialVersionUID */
	private static final long	serialVersionUID	= 1L;
	private ServiceBO			service				= new ServiceBOImpl();
	private List<Service>		listService			= new ArrayList<>();

	/**
	 * List all service which system provide
	 * Done
	 */
	public String list(){
		try{
			listService = service.getListService();
			return SUCCESS;
		}catch(Exception e){
			return ERROR;
		}
	}

	public List<Service> getListService(){
		return listService;
	}

	public void setListService(List<Service> listService){
		this.listService = listService;
	}

}
